package behaviours;

import core.Senses;

public class SensesPrinter extends Behaviour {

	@Override
	protected boolean isFinished() {
		return false;
	}


	@Override
	protected void begin() throws InterruptedException {
		sleep = 5000;
	}


	@Override
	protected void loop() throws InterruptedException {
		Senses.readGround();
		Senses.readCompass();
		Senses.readProximity();
		Senses.readVelocity();
		Senses.readLight();
		Senses.readEnergy();
		
		System.out.println("Ground:\t"+Senses.isOnGround());
		System.out.println("Compass:\t"+Senses.getCompass());
		System.out.println("Proximity:\t"+Senses.getProximity(0)+" "+Senses.getProximity(1)+" "+Senses.getProximity(2)+" "+Senses.getProximity(3)+" "+Senses.getProximity(4)+" "+Senses.getProximity(5)+" "+Senses.getProximity(6)+" "+Senses.getProximity(7));
		System.out.println("Light:\t"+Senses.getLight(0)+" "+Senses.getLight(1)+" "+Senses.getLight(2)+" "+Senses.getLight(3)+" "+Senses.getLight(4)+" "+Senses.getLight(5)+" "+Senses.getLight(6)+" "+Senses.getLight(7));
		System.out.println("Velocity:\t"+Senses.getVelocity(0)+" "+Senses.getVelocity(1));
		System.out.println("Energy:\t"+Senses.getEnergy());
	}

}
